package appapi.entity.auth;

import appapi.common.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 请求对象
 *
 * @author luocheng
 * @version 1.0
 * @date 2023/05/23 14:15
 */
@ApiModel
@Data
public class ModuletypeModel {
    @ApiModelProperty(value = "模块ID")
    @NotNull(message = "模块ID不能为空", groups = {UpdateGroup.class})
    @TableId(type = IdType.AUTO)
    private Long moduId;

    @ApiModelProperty(value = "模块标识")
    private String moduTag;

    @ApiModelProperty(value = "所属类别 0 目录 1功能")
    private Long moduType;

    @ApiModelProperty(value = "父级ID")
    private Long parentId;

    @ApiModelProperty(value = "父级节点名称")
    private String parentName;
    @ApiModelProperty(value = "模块名称")
    private String moduName;

    @ApiModelProperty(value = "模块地址")
    private String moduUrl;

    @ApiModelProperty(value = "排序")
    private Integer moduSort;

    @ApiModelProperty(value = "0-启用;1-未启用")
    private Integer moduState;

    @ApiModelProperty(value = "模块图标")
    private String moduIcon;

    @ApiModelProperty(value = "备注")
    private String moduNote;
    @ApiModelProperty(value = "模块信息")
    private List<ModulelistEntity> children;
}
